/**
 * Copyright 2021 jianggujin (www.jianggujin.com).
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.jianggujin.modulelink.config;

import com.jianggujin.modulelink.exception.JModuleExistsException;

/**
 * 模块加载策略
 * 
 * @author jianggujin
 *
 */
public enum JModuleLoadPolicy {
    /**
     * 模块已经存在时，卸载旧模块，重新加载
     */
    ReplacePolicy,
    /**
     * 丢弃需要加载的模块不做任何处理，也不会抛出异常
     */
    DiscardPolicy,
    /**
     * 拒绝需要加载的模块并抛出{@link JModuleExistsException}异常
     */
    AbortPolicy
}
